/*
 * @Description: 视频相关服务
 * @Author: Junhuang
 * @Date: 2022-03-23 16:04:53
 * @LastEditTime: 2022-03-23 16:08:38
 * @LastEditors: Junhuang
 * @Reference: 
 */
'use strict';

const Service = require('egg').Service;

class VideoService extends Service {
  async getVideosByUser(user_id) {
    return await this.app.model.Video.findAll({
      where: {
        user_id
      }
    });
  }
}

module.exports = VideoService;
